package com.xuzhen.service;

import java.util.Date;

import com.xuzhen.domain.MonthReport;
import com.xuzhen.domain.User;

public interface MonthReportService {

	MonthReport add(MonthReport monthReport);

	MonthReport update(MonthReport monthReport);

	MonthReport delete(MonthReport monthReport);

	/**
	 * 根据用户，账目类别，日期(年，月)获取对应的月报表
	 * 
	 * @param user
	 * @param date
	 * @param type
	 * @return
	 */
	MonthReport findByUserAndTypeAndDate(User user, Date date, int type);
}
